package com.hspedu.wrapper;

public class WrapperExercise02 {
    public static void main(String[] args) {
        Integer i = new Integer(1);
        Integer j = new Integer(1);
        System.out.println(i == j);//F

        //-128 ~ 127 就是直接返回
        Integer m = 1;//底层 Integer.valueOf(1)
        Integer n = 1;
        System.out.println(m == n);//T

        //否则，new Integer()
        Integer x = 128;//底层 Integer.valueOf(1)
        Integer y = 128;
        System.out.println(x == y);//F
    }
}
